import request from '@/utils/request.js'
/**
 * 分类字典管理列表
 * @param {*} data
 * @returns
 */
export function list(data) {
    return request({
        url: '/sysDictSort/list',
        method: 'get',
        data,
        headers: {
        isToken: true
        },
    })
}
//新增
export function add(data) {
    return request({
        url: '/sysDictSort',
        method: 'post',
        data,
        headers: {
        isToken: true
        },
    })
}
//跟据id看详情
export function editId(id) {
    return request({
        url: '/sysDictSort/'+id,
        method: 'get',
        headers: {
        isToken: true
        },
    })
}
//编辑
export function edit(data) {
    return request({
        url: '/sysDictSort',
        method: 'put',
        data,
        headers: {
        isToken: true
        },
    })
}
/**
 *删除角色
 * @param {*} data
 * @returns
 */
export function del(ids) {
    return request({
        url: '/sysDictSort/'+ ids,
        method: 'delete',
        headers: {
        isToken: true
        },
    })
}
